import React, { Component } from 'react';
import Pagination from 'src/hrpub/common/components/Pagination/index';
import './index.less';

class PG extends Component {
	constructor(props) {
		super(props);
	}
	render() {
		const { showMode, pkOrg, hasListData } = this.props;
		const display = {
			display: pkOrg && showMode === 'list-browse' ? 'block' : 'none'
		};
		return (
			<footer className="footer" style={display}>
				<Pagination
					{...this.props}
					hideOnSinglePage={!hasListData}
					showQuickJumper={true}
					showSizeChanger={true}
				/>
			</footer>
		);
	}
}

export default PG;
